package com.project.util;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;


@RestControllerAdvice
public class PressException {

    @ExceptionHandler(Exception.class)
    public String   press(){
        return "发生异常";
    }
}
